package com.apestech.api.workflow.modul;

import com.apestech.framework.json.JSON;
import com.apestech.framework.json.JSONObject;

import java.util.Date;

/**
 * @author hup
 * @create 2018-07-12-17:09
 */
public class CounterSignModul {

    private String userId;
    private String userName;
    private Date dueDate;
    private boolean result;

    public CounterSignModul(JSONObject map) throws Exception {
        this.userId=map.getString("userId");
        this.userName=map.getString("userName");
        this.dueDate=map.getDate("dueDate");
        this.result=map.getBoolean("result");
    }

    public CounterSignModul(String userId, String userName){
        this.userId=userId;
        this.userName=userName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setDueDate(Date dueDate, boolean result) {
        this.dueDate = dueDate;
        this.result=result;
    }

    public Date getDueDate() {
        return dueDate;
    }

    public boolean isResult() {
        return result;
    }

}
